package com.xxmw.transaction.service.app;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxmw.transaction.common.entity.P;
import com.xxmw.transaction.model.app.BourseApi;

import java.util.List;

/**
 * 交易所api
 * @author luowenliang
 * @since 2020/2/14 15:59
 */
public interface BourseApiService extends IService<BourseApi> {

    /**
     * 交易所api列表
     * @param pageNum
     * @param pageSize
     * @param bourse
     * @param username
     * @return
     */
    P<BourseApi> pageList (int pageNum, int pageSize, Integer bourse, String username);

    /**
     * 获取用户api
     * @param username
     * @param bourse 交易所
     * @return
     */
    List<BourseApi> getUserApi (String username, Integer bourse);

    BourseApi getByUserBrick (Long brickId, Integer brouse);


    List<BourseApi> getUserApis (String username);

    List<BourseApi> getBourseByApi(String username, List<Integer> apis);
}
